﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MapadeLuzesnoChao
{
    class camera
    {

        /// <summary>
        /// O dispositivo gráfico 
        /// </summary>
        private GraphicsDevice device;

        /// <summary>
        /// O conjunto de vértices que será desenhado na tela
        /// </summary>
        private VertexBuffer vertexBuffer;


        /// <summary>
        /// Matrix View
        /// </summary>
        public Matrix view;


        /// <summary>
        /// Matrix Projection
        /// </summary>
        public Matrix projection;


        public camera(GraphicsDevice graphicsDevice, Vector3 cameraPosition, Vector3 cameraTarget, Vector3 cameraUpVector)
        {

            // Criando a matrix view
            view = Matrix.CreateLookAt(cameraPosition, cameraTarget, cameraUpVector);

            // Criando a matrix projection
            projection = Matrix.CreatePerspectiveFieldOfView(
                    MathHelper.ToRadians(45),
                    graphicsDevice.Viewport.AspectRatio,
                    1,
                    10);
        }


        /// <summary>
        /// Método Update
        /// </summary>
        public void Update()
        {

        }

    }
}
